{% extends "Iutomgl6Bundle::layout.html.twig" %}

{% block title %}Création de ticket{% endblock %}

{% block body %}

<h1>Affectation edit</h1>

<form action="{{ path('affectation_update', { 'id': entity.id }) }}" method="post" {{ form_enctype(edit_form) }}>
    {{ form_widget(edit_form) }}
    <p>
        <button type="submit">Edit</button>
    </p>
</form>

        <a href="{{ path('affectation') }}"id="retour">
            <button> Retour </button>
        </a>

        <form action="{{ path('affectation_delete', { 'id': entity.id }) }}" method="post">
            {{ form_widget(delete_form) }}
            <button type="submit">Delete</button>
        </form>


{% endblock %}